package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="CarManage"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class CarManage implements Serializable {

    /** identifier field */
    private Integer carId;

    /** nullable persistent field */
    private String carBrand;

    /** nullable persistent field */
    private String factoryModel;

    /** nullable persistent field */
    private String engineModel;

    /** persistent field */
    private String carType;

    /** nullable persistent field */
    private String driver;

    /** nullable persistent field */
    private Double price;

    /** nullable persistent field */
    private String purchaseDate;

    /** persistent field */
    private String state;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public CarManage(String carBrand, String factoryModel, String engineModel, String carType, String driver, Double price, String purchaseDate, String state, String userId, String latestDate, String remark) {
        this.carBrand = carBrand;
        this.factoryModel = factoryModel;
        this.engineModel = engineModel;
        this.carType = carType;
        this.driver = driver;
        this.price = price;
        this.purchaseDate = purchaseDate;
        this.state = state;
        this.userId = userId;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public CarManage() {
    }

    /** minimal constructor */
    public CarManage(String carType, String state, String userId) {
        this.carType = carType;
        this.state = state;
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="CarId"
     *             unsaved-value="0"
     *         
     */
    public Integer getCarId() {
        return this.carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    /** 
     *            @hibernate.property
     *             column="CarBrand"
     *             length="50"
     *         
     */
    public String getCarBrand() {
        return this.carBrand;
    }

    public void setCarBrand(String carBrand) {
        this.carBrand = carBrand;
    }

    /** 
     *            @hibernate.property
     *             column="FactoryModel"
     *             length="100"
     *         
     */
    public String getFactoryModel() {
        return this.factoryModel;
    }

    public void setFactoryModel(String factoryModel) {
        this.factoryModel = factoryModel;
    }

    /** 
     *            @hibernate.property
     *             column="EngineModel"
     *             length="100"
     *         
     */
    public String getEngineModel() {
        return this.engineModel;
    }

    public void setEngineModel(String engineModel) {
        this.engineModel = engineModel;
    }

    /** 
     *            @hibernate.property
     *             column="CarType"
     *             length="6"
     *             not-null="true"
     *         
     */
    public String getCarType() {
        return this.carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    /** 
     *            @hibernate.property
     *             column="Driver"
     *             length="20"
     *         
     */
    public String getDriver() {
        return this.driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    /** 
     *            @hibernate.property
     *             column="Price"
     *             length="53"
     *         
     */
    public Double getPrice() {
        return this.price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    /** 
     *            @hibernate.property
     *             column="PurchaseDate"
     *             length="23"
     *         
     */
    public String getPurchaseDate() {
        return this.purchaseDate;
    }

    public void setPurchaseDate(String purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    /** 
     *            @hibernate.property
     *             column="State"
     *             length="6"
     *             not-null="true"
     *         
     */
    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("carId", getCarId())
            .toString();
    }
    /*public String toString(){
    	return new ToStringBuilder(this)
    	.append("price".getPrice())
    	.toString();
    }*/

}
